﻿using System.ComponentModel;

namespace ZiChen.SoXunLeiPan.ViewModel.Result
{
	public enum ResultCode
	{
		/// <summary>
		/// 操作成功
		/// </summary>
		[Description("操作成功")]
		Success = 200,

		/// <summary>
		/// 指定参数的数据不存在
		/// </summary>
		[Description("必要参数不可为空")]
		OperaParamNull = 101,

		/// <summary>
		/// 输入信息验证失败
		/// </summary>
		[Description("输入信息验证失败")]
		ValidError = 102,

		/// <summary>
		/// 短信验证失败
		/// </summary>
		[Description("短信验证失败")]
		SmsError = 103,

		/// <summary>
		/// 短信验证码输入错误次数过多，请24小时后再试
		/// </summary>
		[Description("短信验证码输入错误次数过多，请重新获取。")]
		SmsTooMany = 112,

		/// <summary>
		/// 验证码验证失败
		/// </summary>
		[Description("验证码验证失败")]
		VifyError = 104,

		/// <summary>
		/// 文件上传失败
		/// </summary>
		[Description("上传失败")]
		FileError = 105,

		/// <summary>
		/// 操作失败
		/// </summary>
		[Description("操作失败")]
		ResultError = 106,

		/// <summary>
		/// 未授权
		/// </summary>
		[Description("未经授权")]
		Unauthorized = 401,

		/// <summary>
		/// 无权访问
		/// </summary>
		[Description("无权访问")]
		Forbidden = 403,

		/// <summary>
		/// 访问频繁
		/// </summary>
		[Description("访问频繁，休息一会！")]
		TooMany = 429,

		/// <summary>
		/// 系统异常
		/// </summary>
		[Description("系统错误，请联系管理员！")]
		Error = 500,

		/// <summary>
		/// 找不到文档
		/// </summary>
		[Description("没有获取到文档信息")]
		NotFoundFile = 107,

        /// <summary>
        /// 拒绝访问
        /// </summary>
        [Description("拒绝访问")]
        NotFound = 404,
        /// <summary>
        /// 余额不足
        /// </summary>
        [Description("金币余额不足")]
		NotMoney = 108,

		/// <summary>
		/// 积分不足
		/// </summary>
		[Description("积分不足")]
		NotIntegral = 109,

		/// <summary>
		/// 免费下载次数已用完
		/// </summary>
		[Description("免费下载次数已用完,请明天再来。")]
		FreeDownFail = 110,

		/// <summary>
		/// VIP下载次数已用完
		/// </summary>
		[Description("VIP下载次数已用完，请明天再来。")]
		DownFail = 111,

		[Description("认证不通过")]
		CretError = 112
	}
}